home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The PC-SIG Library 10
/
The PC-Sig Library - Shareware for the IBM PC and Compatibles (PC-SIG)(Tenth Edition Disks 1-2804)(1991).iso
/
PC_SIGCD
/
20
/
9
/
DISK2092.ZIP
/
RFIX0227.ZIP
/
INDEF.LIT
< prev
next >
Wrap
Text File
|
1990-02-21
|
14KB
|
392 lines
*[INDEF.LIT]******************************************************************
* Description: Puts READDEF in module with no error checking *
* RBBS-PC Level: CPC17.3 √ AM *
* Module Affected: RBBSSUB5.BAS *
* Selection Option: DEFERROR = OFF *
* Additional files: OUTDEF1.LIT,OUTDEF2.LIT *
******************************************************************************
112 ' $SUBTITLE: 'ReadDef - subroutine to read RBBS-PC.DEF file'
' $PAGE
'
' NAME -- ReadDef
'
' INPUTS -- PARAMETER MEANING
' ZConfigFileName$ NAME OF RBBS-PC.DEF FILE
' ZSubParm = -62 ONLY READ THE .DEF FILE
'
' OUTPUTS -- ALL THE RBBS-PC.DEF PARAMETERS
'
' PURPOSE -- TO READ THE PARAMETERS FROM THE RBBS-PC.DEF FILE
'
SUB ReadDef (ConfigFile$) STATIC
'
' **** OPEN AND READ RBBS-PC CONFIGURATION DEFINITIONS ***
'
117 IF ZSubParm <> -62 THEN _
IF PrevRead$ = ConfigFile$ THEN _
EXIT SUB _
ELSE PrevRead$ = ConfigFile$
CLOSE 2
ZBulletinSave$ = ZBulletinMenu$
CALL OpenWork (2,ConfigFile$)
ZCurDef$ = ConfigFile$
INPUT #2,ZWasDF$, _
ZDnldDrives$, _
ZSysopPswd1$, _
ZSysopPswd2$, _
ZSysopFirstName$, _
ZSysopLastName$, _
ZRequiredRings, _
ZStartOfficeHours, _
ZEndOfficeHours, _
ZMinsPerSession, _ ' DA111103
ZWasDF, _
ZWasDF, _
ZUpldDir$, _
ZExpertUserDef, _
ZActiveBulletins, _
ZPromptBellDef, _
ZWasDF, _
ZMenusCanPause, _
ZMenu$(1), _
ZMenu$(2), _
ZMenu$(3), _
ZMenu$(4), _
ZMenu$(5), _
ZMenu$(6), _
ZConfMenu$, _
ZWasDF, _
ZWelcomeInterruptable, _
ZRemindFileXfers, _
ZPageLengthDef, _ ' KG080801
ZMaxMsgLinesDef, _
ZDoorsAvail, _
ZWasDF$, _
ZMainMsgFile$, _
ZMainMsgBackup$
INPUT #2, WasX$, _
ZCmntsFile$, _
ZMainUserFile$, _
ZWelcomeFile$, _
ZNewUserFile$, _
ZMainDirExtension$
CALL BreakFileName (WasX$,ZWasY$,ZWasDF$,ZWasZ$,ZFalse)
IF ZWasDF$ <> "" THEN _ ' RB060403
ZCallersFile$ = WasX$
INPUT #2, ZWasDF$
IF ZComPort$ <> "COM0" THEN _
IF NOT ZConfMode THEN _
ZComPort$ = ZWasDF$
INPUT #2, ZBulletinsOptional, _
ZModemInitCmd$, _
ZRTS$, _
ZWasDF, _
ZFG, _
ZBG, _
ZBorder
IF ZConfMode THEN _
INPUT #2, ZWasDF$, _
ZWasDF$ _
ELSE INPUT #2, ZRBBSBat$ , _
ZRCTTYBat$
INPUT #2,ZOmitMainDir$, _
ZFirstNamePrompt$, _
ZHelp$(3), _
ZHelp$(4), _
ZHelp$(7), _
ZHelp$(9), _
ZBulletinMenu$, _
ZBulletinPrefix$, _
ZWasDF$, _
ZMsgReminder, _
ZRequireNonASCII, _
ZAskExtendedDesc, _
ZMaxNodes, _
ZNetworkType, _
ZRecycleToDos, _
ZWasDF, _
ZWasDF, _
ZTrashcanFile$
INPUT #2,ZMinLogonSec, _
ZDefaultSecLevel, _ ' KG022003
ZSysopSecLevel, _
ZFileSecFile$, _
ZSysopMenuSecLevel, _
ZConfMailList$, _
ZMaxViolations, _
ZOptSec(50), _ ' SECURITY FOR ZSysop COMMANDS 1
ZOptSec(51), _
ZOptSec(52), _
ZOptSec(53), _
ZOptSec(54), _
ZOptSec(55), _
ZOptSec(56), _ ' ZSysop 7
ZPswdFile$, _
ZMaxPswdChanges, _
ZMinSecForTempPswd, _
ZOverWriteSecLevel, _
ZDoorsTermType, _
ZMaxPerDay
INPUT #2,ZOptSec(1), _ ' SECURITY FOR MAIN MENU COMMANDS 1
ZOptSec(2), _
ZOptSec(3), _
ZOptSec(4), _
ZOptSec(5), _
ZOptSec(6), _
ZOptSec(7), _
ZOptSec(8), _
ZOptSec(9), _
ZOptSec(10), _
ZOptSec(11), _
ZOptSec(12), _
ZOptSec(13), _
ZOptSec(14), _
ZOptSec(15), _
ZOptSec(16), _
ZOptSec(17), _
ZOptSec(18), _ ' MAIN COMMAND 18
ZMinNewCallerBaud, _
ZWaitBeforeDisconnect
INPUT #2,ZOptSec(19), _ ' Security for FILE COMMANDS 1
ZOptSec(20), _
ZOptSec(21), _
ZOptSec(22), _
ZOptSec(23), _
ZOptSec(24), _
ZOptSec(25), _
ZOptSec(26), _ ' FILE COMMAND 8
ZOptSec(27), _ ' SECURITY FOR UTILITY COMMANDS 1
ZOptSec(28), _
ZOptSec(29), _
ZOptSec(30), _
ZOptSec(31), _
ZOptSec(32), _
ZOptSec(33), _
ZOptSec(34), _
ZOptSec(35), _
ZOptSec(36), _
ZOptSec(37), _
ZOptSec(38), _ ' UTIL COMMAND 12
ZOptSec(46), _ ' SECURITY FOR GLOBAL COMMANDS 1
ZOptSec(47), _
ZOptSec(48), _
ZOptSec(49), _
ZUpldTimeFactor!, _
ZComputerType, _
ZRemindProfile, _
ZRBBSName$, _
ZCmdsBetweenRings, _
ZMNPSupport, _
ZPagingPtrSupport$ ' RK122301
IF ZConfMode THEN _ ' RK122301
INPUT #2, ZwasDF _ ' RK122301
ELSE INPUT #2, ZModemInitBaud$ ' RK122301
IF ZErrCode > 0 THEN _
EXIT SUB
118 INPUT #2, ZTurnPrinterOff,_ ' Turn printer off each recycle
ZDirPath$, _ ' Where dir files are stored
ZMinSecToView, _
ZLimitSearchToFMS, _
ZDefaultCatCode$, _
ZDirCatFile$, _
ZNewFilesCheck, _
ZMaxDescLen, _
ZShowSection, _
ZCmndsInPrompt, _
ZNewUserSetsDefaults, _
ZHelpPath$, _
ZHelpExtension$, _
ZMainCmds$, _
ZFileCmd$, _
ZUtilCmds$, _
ZGlobalCmnds$, _
ZSysopCmds$
INPUT #2, ZRecycleWait, _
ZOptSec(39), _ ' SECURITY FOR Library COMMANDS 1
ZOptSec(40), _
ZOptSec(41), _
ZOptSec(42), _
ZOptSec(43), _
ZOptSec(44), _
ZOptSec(45), _ ' Library COMMANDS 7
ZLibDrive$, _
ZLibDirPath$, _
ZLibDirExtension$, _
ZLibWorkDiskPath$, _
ZLibMaxDisk, _
ZLibMaxDir, _
ZLibMaxSubdir, _
ZLibSubdirPrefix$, _
ZLibArcPath$, _
ZLibArcProgram$, _
ZLibCmds$
'
' ***** ESTABLISH COMMUNICATION PORT REGISTERS AND COMMANDS ***
' ***** GET DOS SUB-DIRECTORY RBBS-PC OPTIONS ***
'
INPUT #2, ZUpldPath$, _ ' Where upl dir goes
ZMainFMSDir$, _ ' Shared dir in FMS
ZAnsMenu$, _
ZReqQues$,_
ZRememberNewUsers,_
ZSurviveNoUserRoom,_
ZPromptHash$,_
ZStartHash,_
ZLenHash,_
ZPromptIndiv$,_
ZStartIndiv,_
ZLenIndiv
INPUT #2, ZBypassMsgs, _
ZMusic, _
ZRestrictByDate, _
ZDaysToWarn, _
ZDaysInRegPeriod, _
ZVoiceType, _
ZRestrictValidCmds, _
ZNewUserDefaultMode, _
ZNewUserLineFeeds, _
ZNewUserNulls, _
ZFastFileList$, _ ' KG102201
ZFastFileLocator$, _ ' KG102201
ZMsgsCanGrow, _
ZWrapCallersFile$, _
ZRedirectIOMethod, _
ZAutoUpgradeSec, _
ZHaltOnError, _
ZNewPublicMsgsSec, _
ZNewPrivateMsgsSec, _
SecNeededToChangeMsgs, _
ZSLCategorizeUplds, _
ZBaudot, _
ZHourMinToDropToDos, _
ZExpiredSec, _
ZDTRDropDelay, _
ZAskID, _
ZMaxRegSec, _
ZBufferSize, _
ZMLCom, _
ZNoDoorProtect, _
ZDefaultExtension$, _
ZNewUserDefaultProtocol$, _
ZNewUserGraphics$, _
ZNetMail$, _
ZMasterDirName$, _
ZProtoDef$, _
ZUpcatHelp$, _
ZAllwaysStrewTo$, _
ZLastNamePrompt$
119 INPUT #2, ZPersonalDrvPath$, _
ZPersonalDir$, _
ZPersonalBegin, _
ZPersonalLen, _
ZPersonalProtocol$, _
ZPersonalConcat , _
ZPrivateReadSec, _
ZPublicReadSec, _
ZSecChangeMsg ' RK122301
IF ZConfMode THEN _ ' RK122301
INPUT #2, ZwasDF _ ' RK122301
ELSE INPUT #2, ZKeepInitBaud ' RK122301
INPUT #2, ZMainPUI$ ' RK122301
IF ZConfMode THEN _
INPUT #2, ZWasDF$,ZWasDF$,ZWasDF$ _
ELSE INPUT #2, ZDefaultEchoer$, _
ZHostEchoOn$, _
ZHostEchoOff$
INPUT #2, ZSwitchBack, _
ZDefaultLineACK$, _
ZAltdirExtension$, _
ZDirPrefix$
IF ZConfMode THEN _
INPUT #2, ZWasDF, _
ZWasDF, _
ZWasDF _
ELSE INPUT #2, ZWasDF,_
ZModemInitWaitTime, _
ZModemCmdDelayTime
INPUT #2, ZTurboRBBS, _
ZSubDirCount, _
ZWasDF, _
ZUpldToSubdir, _
ZWasDF, _
ZUpldSubdir$, _
ZMinOldCallerBaud, _
ZMaxWorkVar, _
ZDiskFullGoOffline, _
ZExtendedLogging
IF ZConfMode THEN _
INPUT #2, ZWasDF$, _
ZWasDF$, _
ZWasDF$, _
ZWasDF$ _
ELSE INPUT #2, ZModemResetCmd$, _
ZModemCountRingsCmd$, _
ZModemAnswerCmd$, _
ZModemGoOffHookCmd$
INPUT #2,ZDiskForDos$, _
ZDumbModem, _
ZCmntsAsMsgs
IF ZConfMode THEN _
INPUT #2, ZWasDF, _
ZWasDF, _
ZWasDF, _
ZWasDF, _
ZWasDF, _
ZWasDF _
ELSE INPUT #2, ZLSB,_
ZMSB,_
ZLineCntlReg,_
ZModemCntlReg,_
ZLineStatusReg,_
ZModemStatusReg
INPUT #2,ZKeepTimeCredits, _
ZXOnXOff, _
ZAllowCallerTurbo, _
ZUseDeviceDriver$, _
ZPreLog$, _
ZNewUserQuestionnaire$, _
ZEpilog$, _
ZRegProgram$, _
ZQuesPath$, _
ZUserLocation$, _
ZWasDF$, _
ZWasDF$, _
ZWasDF$, _
ZEnforceRatios, _
ZSizeOfStack, _
ZSecExemptFromEpilog, _
ZUseBASICWrites, _
ZDosANSI, _
ZEscapeInsecure, _
ZUseDirOrder, _
ZAddDirSecurity, _
ZMaxExtendedLines, _
ZOrigCommands$
INPUT #2,ZLogonMailLevel$, _
ZMacroDrvPath$, _
ZMacroExtension$, _
ZEmphasizeOnDef$, _
ZEmphasizeOffDef$, _
ZFG1Def$, _
ZFG2Def$, _
ZFG3Def$, _
ZFG4Def$, _
ZSecVioHelp$
IF ZConfMode THEN _
INPUT #2,ZWasDF _
ELSE INPUT #2,ZFossil
INPUT #2,ZMaxCarrierWait, _
ZWasDF, _
ZSmartTextCode, _
ZTimeLock, _
ZWriteBufDef, _
ZSecKillAny, _
ZDoorsDef$, _
ZScreenOutMsg$, _
ZAutoPageDef$
IF ZErrCode > 0 THEN _
EXIT SUB
ZConfigFileName$ = ConfigFile$
CALL EditDef
END SUB